DocumentSelector

data class DocumentSelector(val documentSelectorSettings: NavigationSpec.DocumentSelector.DocumentSelectorSettings, val documentSelectorAppearance: NavigationSpec.DocumentSelector.DocumentSelectorAppearance, val delegate: UIDocumentBrowserViewControllerDelegateProtocol, val animated: Boolean = false, val completion: () -> Unit? = null) : NavigationSpec

Presents a UIDocumentBrowserViewController

Parameters

documentSelectorSettings

The DocumentSelectorSettings for selecting the document

documentSelectorAppearance

The DocumentSelectorAppearance for configuring the appearance of the selector

delegate

The UIDocumentBrowserViewControllerDelegateProtocol added to the UIDocumentBrowserViewController

animated

Specifies whether transition is animated

completion

Optional function called when presentation is completed

Constructors

Link copied to clipboard
constructor(documentSelectorSettings: NavigationSpec.DocumentSelector.DocumentSelectorSettings, documentSelectorAppearance: NavigationSpec.DocumentSelector.DocumentSelectorAppearance, delegate: UIDocumentBrowserViewControllerDelegateProtocol, animated: Boolean = false, completion: () -> Unit? = null)

Types

Link copied to clipboard
data class DocumentSelectorAppearance(val interfaceStyle: UIDocumentBrowserUserInterfaceStyle = UIDocumentBrowserUserInterfaceStyleLight, val leadingNavigationBarButtonItems: List<UIBarButtonItem> = emptyList(), val trailingNavigationBarButtonItems: List<UIBarButtonItem> = emptyList(), val customActions: List<UIDocumentBrowserAction> = emptyList(), val createTitle: String, val documentAspectRatio: Double = 2.0 / 3.0, val showFileExtensions: Boolean = false)
Link copied to clipboard
data class DocumentSelectorSettings(val types: Set<String>, val allowMultiple: Boolean = false, val allowCreation: Boolean = false)

Configures the settings for a UIDocumentBrowserViewController

Properties

Link copied to clipboard
Link copied to clipboard
val completion: () -> Unit?
Link copied to clipboard
val delegate: UIDocumentBrowserViewControllerDelegateProtocol